package com.jyxd.web.data.basic;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

/**
 * 基础护理同步表
 */
@Entity
@Table(name = "table_basic_nursing_sync_record")
@Data
@ApiModel("基础护理同步表")
public class BasicNursingSyncRecord {

    /**
     * 序列
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id
    @Column(name = "id", length = 32, nullable = false)
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
    private String id;

    @ApiModelProperty("code值")
    @Column(name = "code")
    private String code;

    @ApiModelProperty("频率内容")
    @Column(name = "content")
    private String content;

    @ApiModelProperty("患者id")
    @Column(name = "patient_id")
    private String patientId;

    @ApiModelProperty("同步时间 （根据当前传入日期，判断日期是否相同，相同则已同步，不同则无同步）")
    @Column(name = "sync_time")
    private Date syncTime;

    @ApiModelProperty("创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty("数据状态")
    @Column(name = "status")
    private Integer status;
}
